package internal

import "net/http"

//go:generate gowrap gen -p ./ -i QrGeneratorApi -t file://../../../../tools/http/http.gohtml -o qrcode_gen.go -g

type Param struct {
	Data string `json:"data"`
	Size int `json:"size"`
}

type QrGeneratorApi interface {
	// Gen
	// @var Render.Type=none
	Gen(w http.ResponseWriter,p *Param)
	// GenGet
	// @var Render.Type=none
	// @var data.type=query
	// @var size.type=query
	GenGet(w http.ResponseWriter,data string,size int)
}
